package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_activitycomment"
    ,catalog="zutuan_prot"
)
public class JujuActivitycomment  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuActivitycomment";
	public static final String TABLE_NAME="juju_activitycomment";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_activityid = "activityid"; 
	public static final String P_comment = "comment"; 
	public static final String P_createtime = "createtime"; 
	public static final String P_deleflag = "deleflag"; 
	public static final String P_checkstatus = "checkstatus"; 
	public static final String P_createruser = "createruser"; 
	public static final String P_parentcommentid = "parentcommentid"; 
	public static final String P_scoreinfo = "scoreinfo"; 

     private String id;
     private String activityid;
     private String comment;
     private Date createtime;
     private Integer deleflag;
     private Integer checkstatus;
     private String createruser;
     private String parentcommentid;
     private String scoreinfo;

    public JujuActivitycomment() {
    }
	
    public JujuActivitycomment(String id) {
        this.id = id;
    }
    public JujuActivitycomment(String id, String activityid, String comment, Date createtime, Integer deleflag, Integer checkstatus, String createruser, String parentcommentid, String scoreinfo) {
        this.id = id;
        this.activityid = activityid;
        this.comment = comment;
        this.createtime = createtime;
        this.deleflag = deleflag;
        this.checkstatus = checkstatus;
        this.createruser = createruser;
        this.parentcommentid = parentcommentid;
        this.scoreinfo = scoreinfo;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="ACTIVITYID", length=36)
    public String getActivityid() {
        return this.activityid;
    }
    
    public void setActivityid(String activityid) {
        this.activityid = activityid;
    }
    
    @Column(name="COMMENT", length=4000)
    public String getComment() {
        return this.comment;
    }
    
    public void setComment(String comment) {
        this.comment = comment;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CREATETIME", length=19)
    public Date getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    
    @Column(name="DELEFLAG")
    public Integer getDeleflag() {
        return this.deleflag;
    }
    
    public void setDeleflag(Integer deleflag) {
        this.deleflag = deleflag;
    }
    
    @Column(name="CHECKSTATUS")
    public Integer getCheckstatus() {
        return this.checkstatus;
    }
    
    public void setCheckstatus(Integer checkstatus) {
        this.checkstatus = checkstatus;
    }
    
    @Column(name="CREATERUSER", length=36)
    public String getCreateruser() {
        return this.createruser;
    }
    
    public void setCreateruser(String createruser) {
        this.createruser = createruser;
    }
    
    @Column(name="PARENTCOMMENTID", length=36)
    public String getParentcommentid() {
        return this.parentcommentid;
    }
    
    public void setParentcommentid(String parentcommentid) {
        this.parentcommentid = parentcommentid;
    }
    
    @Column(name="SCOREINFO", length=5)
    public String getScoreinfo() {
        return this.scoreinfo;
    }
    
    public void setScoreinfo(String scoreinfo) {
        this.scoreinfo = scoreinfo;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


